package mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import pojo.Brand;
import java.util.List;

public interface BrandMapper {
    @Select("select * from t_brand;")
    List<Brand> selectAll();

    Brand selectById(int id);

//    条件查询
//    List<Brand> selectByCondition(@Param("status") int status,
//                      @Param("brandName") String brandName,
//                      @Param("companyName") String companyName);
    List<Brand> selectByCondition(Brand brand);
}
